set more off

use "switchers_map", clear

count if held == 1
local N1 = r(N)
count if held == 0
local N0 = r(N)

#delimit;

spmap
	held using "coords"
	,
		id(_id) 
		fcol(black white black)
		mocol(white black white)
		ocol(white black white)
		clmethod(unique)
		ndfcolor(white)
		legend(
			off
		)
		nodraw
		name(g1, replace)
		title("Increased competence,")
		subtitle("decreased incentives (N=`N0')", size(large))
		;

#delimit cr

#delimit;

spmap
	held using "coords"
	,
		id(_id) 
		fcol(white black white)
		mocol(black white black)
		ocol(black white black)
		clmethod(unique)
		ndfcolor(white)
		legend(
			off
		)
		nodraw
		name(g2, replace)
		title("Increased competence,")
		subtitle("same incentives (N=`N1')", size(large))
		;

#delimit cr



gr combine g1 g2, rows(2) ysize(1.7) xsize(1) imargin(zero)


gr export "figure A7.eps", replace

